package cz.muni.fi.pa165.hauntedhouses.dto;

import java.util.Objects;

/**A DTO representation of Human entity
 *
 * @author Q.90 Siliarus
 */
public class HumanDTO {
    
    private Long id;
    private String name;   
    private HouseDTO home;
    private Integer psyche;
    private String description;    
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public HouseDTO getHome() {
        return home;
    }

    public void setHome(HouseDTO home) {
        this.home = home;
    }

    public Integer getPsyche() {
        return psyche;
    }

    public void setPsyche(Integer psyche) {
        this.psyche = psyche;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 67 * hash + Objects.hashCode(this.id);
        hash = 67 * hash + Objects.hashCode(this.name);
        hash = 67 * hash + Objects.hashCode(this.home);
        hash = 67 * hash + Objects.hashCode(this.psyche);
        hash = 67 * hash + Objects.hashCode(this.description);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final HumanDTO other = (HumanDTO) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        if (!Objects.equals(this.name, other.name)) {
            return false;
        }
        if (!Objects.equals(this.home, other.home)) {
            return false;
        }
        if (!Objects.equals(this.psyche, other.psyche)) {
            return false;
        }
        if (!Objects.equals(this.description, other.description)) {
            return false;
        }
        return true;
    }

    
}
